import request from '@/utils/request'

// 查询采矿配送至料口（湿重）列表
export function listDeliverytoport(query) {
  return request({
    url: '/app/deliverytoport/list',
    method: 'get',
    params: query
  })
}

// 查询采矿配送至料口（湿重）详细
export function getDeliverytoport(id) {
  return request({
    url: '/app/deliverytoport/' + id,
    method: 'get'
  })
}

// 新增采矿配送至料口（湿重）
export function addDeliverytoport(data) {
  return request({
    url: '/app/deliverytoport',
    method: 'post',
    data: data
  })
}

// 修改采矿配送至料口（湿重）
export function updateDeliverytoport(data) {
  return request({
    url: '/app/deliverytoport',
    method: 'put',
    data: data
  })
}

// 删除采矿配送至料口（湿重）
export function delDeliverytoport(id) {
  return request({
    url: '/app/deliverytoport/' + id,
    method: 'delete'
  })
}

// a产量数据字典
export function dictionlist(params) {
    return request({
      url: '/app/diction/list',
      method: 'get',
      params
    })
  }
// a产量数据字典新增
export function dictionAdd(data) {
    return request({
      url: '/app/diction',
      method: 'post',
      data
    })
  }
// a产量数据字典删除
export function dictionDel(data) {
    return request({
      url: `/app/diction/${data.id}`,
      method: 'delete',
    })
  }